#include "DIJoyStick.h"

DIJoyStick::DIJoyStick(){}

void DIJoyStick::Init(HWND hwnd)
{
	_hWnd = hwnd;
	_lpDI = NULL;
	_joyNum = 0;
	//std::fill(_lpDIDevices.begin(), _lpDIDevices.end(), LPDIRECTINPUTDEVICE8());
	//std::fill(_buf.begin(), _buf.end(), JoyCode::JOY_NULL);

	ZeroMemory(_lpDIDevices, sizeof(_lpDIDevices));
	ZeroMemory(_buf, sizeof(_buf));

	_newBuf = _buf[0];
	_oldBuf = _buf[1];
}